﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdClick.aspx.cs" Inherits="ETongJin.YM.Web.TuiGuang.AdClick" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>广告点击列表 - 推广中心</title>
    <link href="images/skin.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("userid");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
    </script>

</head>
<body leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="images/mail_leftbg.gif">
                <img src="images/left-top-right.gif" width="17" height="29" />
            </td>
            <td width="935" height="29" valign="top" background="images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt" id="titlebt" runat="server">
                                广告点击</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="images/mail_rightbg.gif">
                <img src="images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td bgcolor="#F7F8F9">
                <table width="99%" border="0" cellpadding="0" cellspacing="1">
                    <tr>
                        <th colspan="8">
                            <table width="100%" border="0">
                                <tr>
                                    <td>
                                        <table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="80" style="color: #990000;">
                                                    筛选：
                                                </td>
                                                <td width="90">
                                                    <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" onchange="if(this.value=='-2') return false;"
                                                        OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                                                        <asp:ListItem Text="按搜索类型" Value="-2" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="行业搜索" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="聚合搜索" Value="1"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                                <td width="90">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        <table border="0" align="right" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="80" style="color: #990000; text-align: right;">
                                                    搜索：
                                                </td>
                                                <asp:HiddenField ID="ddlSearchType" Value="0" runat="server" />
                                                <td width="90px">
                                                    <input style="display: none" />
                                                    <asp:TextBox ID="txtKeyWords" runat="server" Text="关键字" Style="width: 150px; text-align: left"
                                                        onfocus="if(this.value=='关键字')this.value='';"></asp:TextBox>
                                                </td>
                                                <td width="60px">
                                                    <asp:Button ID="Button4" runat="server" Text=" 提交 " OnClick="Button4_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </th>
                    </tr>
                    <tr>
                        <td width="30px">
                            选
                        </td>
                        <td>
                            搜索关键词&nbsp;
                        </td>
                        <td>
                            来路1
                        </td>
                        <td>
                            来路2
                        </td>
                        <td width="70px">
                            点击IP
                        </td>
                        <td width="70px">
                            点击时间
                        </td>
                        <td width="70px">
                            搜索类型
                        </td>
                        <td width="60px">
                            操作
                        </td>
                    </tr>
                    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                        <ItemTemplate>
                            <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E3E1D7'" onmouseout="javascript:this.bgColor='#FFFFFF'"
                                style="text-align: center;" class="left_txt">
                                <td>
                                    <input name='userid' type='checkbox' value='<%#Eval("id") %>' style="border: none" />
                                </td>
                                <td class="lefttd">
                                    <asp:HyperLink ID="HyperLink1" Target="_blank" Text='<%#Eval("word") %>' runat="server"></asp:HyperLink>
                                </td>
                                <td class="lefttd">
                                    <%#Eval("add1") %>
                                </td>
                                <td>
                                    <%#Eval("add2")%>
                                </td>
                                <td>
                                    <%#Eval("IP") %>
                                </td>
                                <td class="lefttd">
                                    <%#Eval("addTime") %>
                                </td>
                                <td>
                                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("searchtype") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:LinkButton ID="btnDel" runat="server" OnClick="btnDel_Click" CommandArgument='<%# Eval("id")%>'
                                        OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td colspan="8" style="text-align: left; height: 30px;">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="left_txt">
                                <tr>
                                    <td width="180">
                                        <input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox'
                                            style="border: none" />选中本页显示的所有记录
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;<asp:Button ID="Button7" runat="server" Text="批量删除" OnClick="ButtonClick"
                                            CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" />&nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="8" style="text-align: center;">
                            <div id="tnt_pagination" class="left_txt">
                                <%= PageStr%></div>
                            <div>
                            </div>
                        </th>
                    </tr>
                </table>
            </td>
            <td background="images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="images/mail_leftbg.gif">
                <img src="images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="images/buttom_bgs.gif">
                <img src="images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="images/mail_rightbg.gif">
                <img src="images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
